package com.woniuxy.entitys;

import java.io.Serializable;

/**
 * tb_hospital_manager
 * @author 
 */
public class TbHospitalManager implements Serializable {
    private Integer id;

    private Integer uid;

    private Integer hid;

    private Integer softdel;

    private String hname;

    private String hgender;

    private String headImage;

    private String beiyong1;

    private String beiyong2;

    private TbHospital tbHospital;

    private TbUser tbUser;

    public TbHospital getTbHospital() {
        return tbHospital;
    }

    public void setTbHospital(TbHospital tbHospital) {
        this.tbHospital = tbHospital;
    }

    public TbUser getTbUser() {
        return tbUser;
    }

    public void setTbUser(TbUser tbUser) {
        this.tbUser = tbUser;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public Integer getSoftdel() {
        return softdel;
    }

    public void setSoftdel(Integer softdel) {
        this.softdel = softdel;
    }

    public String getHname() {
        return hname;
    }

    public void setHname(String hname) {
        this.hname = hname;
    }

    public String getHgender() {
        return hgender;
    }

    public void setHgender(String hgender) {
        this.hgender = hgender;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getBeiyong1() {
        return beiyong1;
    }

    public void setBeiyong1(String beiyong1) {
        this.beiyong1 = beiyong1;
    }

    public String getBeiyong2() {
        return beiyong2;
    }

    public void setBeiyong2(String beiyong2) {
        this.beiyong2 = beiyong2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbHospitalManager other = (TbHospitalManager) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
            && (this.getSoftdel() == null ? other.getSoftdel() == null : this.getSoftdel().equals(other.getSoftdel()))
            && (this.getHname() == null ? other.getHname() == null : this.getHname().equals(other.getHname()))
            && (this.getHgender() == null ? other.getHgender() == null : this.getHgender().equals(other.getHgender()))
            && (this.getHeadImage() == null ? other.getHeadImage() == null : this.getHeadImage().equals(other.getHeadImage()))
            && (this.getBeiyong1() == null ? other.getBeiyong1() == null : this.getBeiyong1().equals(other.getBeiyong1()))
            && (this.getBeiyong2() == null ? other.getBeiyong2() == null : this.getBeiyong2().equals(other.getBeiyong2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        result = prime * result + ((getSoftdel() == null) ? 0 : getSoftdel().hashCode());
        result = prime * result + ((getHname() == null) ? 0 : getHname().hashCode());
        result = prime * result + ((getHgender() == null) ? 0 : getHgender().hashCode());
        result = prime * result + ((getHeadImage() == null) ? 0 : getHeadImage().hashCode());
        result = prime * result + ((getBeiyong1() == null) ? 0 : getBeiyong1().hashCode());
        result = prime * result + ((getBeiyong2() == null) ? 0 : getBeiyong2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", uid=").append(uid);
        sb.append(", hid=").append(hid);
        sb.append(", softdel=").append(softdel);
        sb.append(", hname=").append(hname);
        sb.append(", hgender=").append(hgender);
        sb.append(", headImage=").append(headImage);
        sb.append(", beiyong1=").append(beiyong1);
        sb.append(", beiyong2=").append(beiyong2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}